import request from '../utils/axios'
export function getClassLevel(data) {  //获取班级权限等级
  return request({
    url: '/powerSet/getClassLevels',
    method: 'get',
    params: data
  })
}
export function getSchoolLevel(data) {  //获取校园权限等级
  return request({
    url: '/powerSet/getSchoolLevels',
    method: 'get',
    params: data
  })
}
export function setClassLevel(data) {   //注册接口
  return request({
    method: 'post',
    url: '/powerSet/setClassOnesLevel',
    data: data
  })
}
export function getTempList(data) {  //获取图片中转站列表
  return request({
    url: '/file/getTempList',
    method: 'get',
    params: data
  })
}
export function deleteFile(data) {  //获取图片中转站列表
  return request({
    url: '/file/deleteFile',
    method: 'post',
    data: data
  })
}
export function queryPrizeList(data) {  //获取奖项列表
  return request({
    url: '/prize/queryPrizeList',
    method: 'get',
    params: data,
  })
}
export function queryAwardSelection(data) {  //获取预设列表
  return request({
    url: '/prize/queryAwardSelection',
    method: 'get',
    params: data
  })
}
export function deletePresetAward(data) {  //删除预设奖项
  return request({
    url: '/prize/deletePresetAward',
    method: 'post',
    data: data
  })
}
export function putNewPresetAward(data) {  //新增预设奖项
  return request({
    url: '/prize/putNewPresetAward',
    method: 'post',
    data: data
  })
}
export function queryVerifyList(data) {  //获取待审核列表
  return request({
    url: '/prize/queryVerifyList',
    method: 'get',
    params: data
  })
}
export function queryPersonList(data) {  //搜人
  return request({
    url: '/account/manage/getPersonList',
    method: 'get',
    params: data
  })
}
export function savePermisson(data) {  //保存权限设置
  return request({
    url: '/powerSet/setOnesSchoolLevel',
    method: 'post',
    data: data
  })
}

export function queryStudentByPermissionCode(data) {  //状态码表格
  return request({
    url: '/powerSet/queryStudentByPermissionCode',
    method: 'get',
    params: data
  })
}